package org.jeecg.modules.platform.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.platform.entity.ProductCategory;
import org.jeecg.modules.platform.facade.IProductCategoryFacade;
import org.jeecg.modules.platform.service.IProductCategoryService;
import org.jeecg.modules.platform.vo.ProductCategoryVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 产品分类三级
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class ProductCategoryFacadeImpl extends IFacadeImpl<ProductCategoryVo, ProductCategory, IProductCategoryService>  implements IProductCategoryFacade<ProductCategoryVo, ProductCategory> {
        @Autowired
        private IProductCategoryService productCategoryService;


         @Override
         public ProductCategory po2Vo(ProductCategoryVo vo) {
                ProductCategory po = new ProductCategory();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public ProductCategoryVo vo2Po(ProductCategory po) {
                ProductCategoryVo vo = new ProductCategoryVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
